import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Order {
    private Date createDate;
    private OrderStatus status;
    private List<OrderDetail> orderDetails;

    public Order(Date createDate) {
        this.createDate = createDate;
        this.status = OrderStatus.CREATE;
        this.orderDetails = new ArrayList<>();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public OrderStatus getStatus() {
        return status;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void addOrderDetail(OrderDetail detail) {
        this.orderDetails.add(detail);
    }
}